#include <iostream>
using namespace std;
int main() {
    double c,f;
    cin >> c;
    f = c*9 / 5 + 32;
    cout << (int) f;
    return 0;
}